|
![](/i/fill.gif) |
Chris Huff <chr### [at] mac com> wrote:
> In article <3a3bbf8c@news.povray.org>, Geoff Wedig
> <wed### [at] darwin epbi cwru edu> wrote:
>> Is there any way to get the value of a function directly?
> This is a feature which I have wanted for a long time...I have done a
> little work on implementing it, but haven't really tried. The syntax
> would be:
> #declare FuncName = function {...}
> #declare FuncVal = FuncName(XVal, YVal, ZVal);
That's what I tried at first. It makes sense, at least to me. Eventually I
created a function and a macro, both with the same equation. Not ideal, but
workable in my case.
>> I know about eval_pigment/pattern, which don't work.
> Uh, they don't? The eval_pattern() function should be perfect for this...
No, it gave me an error. I don't have the code here, so I can't tell what
error it was, but once I saw that, I began to wonder what eval_pattern() was
for in the first place, since it wasn't for that.
Anyway, problem (mostly) solved (see above), so it's no big deal.
Geoff
Post a reply to this message
|
![](/i/fill.gif) |